home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / getsockname.man < prev    next >
Encoding:
Text File  |  1989-01-03  |  1.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. GETSOCKNAME           C Library Procedures            GETSOCKNAME
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      getsockname - get socket name
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ggeettssoocckknnaammee((ss,, nnaammee,, nnaammeelleenn))
  13.      iinntt ss;;
  14.      ssttrruucctt ssoocckkaaddddrr **nnaammee;;
  15.      iinntt **nnaammeelleenn;;
  16.  
  17. DDEESSCCRRIIPPTTIIOONN
  18.      _G_e_t_s_o_c_k_n_a_m_e returns the current _n_a_m_e for the specified
  19.      socket.  The _n_a_m_e_l_e_n parameter should be initialized to
  20.      indicate the amount of space pointed to by _n_a_m_e.  On return
  21.      it contains the actual size of the name returned (in bytes).
  22.  
  23. DDIIAAGGNNOOSSTTIICCSS
  24.      A 0 is returned if the call succeeds, -1 if it fails.
  25.  
  26. EERRRROORRSS
  27.      The call succeeds unless:
  28.  
  29.      [EBADF]        The argument _s is not a valid descriptor.
  30.  
  31.      [ENOTSOCK]     The argument _s is a file, not a socket.
  32.  
  33.      [ENOBUFS]      Insufficient resources were available in the
  34.                     system to perform the operation.
  35.  
  36.      [EFAULT]       The _n_a_m_e parameter points to memory not in a
  37.                     valid part of the process address space.
  38.  
  39. SSEEEE AALLSSOO
  40.      bind(2), socket(2)
  41.  
  42. BBUUGGSS
  43.      Names bound to sockets in the UNIX domain are inaccessible;
  44.      _g_e_t_s_o_c_k_n_a_m_e returns a zero length name.
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 15, 1985                          1
  64.  
  65.  
  66.  
  67.